package com.biostime.qdingding.modules.qd.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.TreeDao;
import com.biostime.qdingding.modules.qd.entity.Center;
import com.biostime.qdingding.modules.qd.entity.Student;
import com.biostime.qdingding.modules.sys.entity.Area;
import com.biostime.qdingding.modules.sys.entity.User;


/**
 * 早教中心Dao
 * @author king
 * @version 2015-11-05
 */
@MyBatisDao
public interface CenterDao extends TreeDao<Center> {

	/**
	 * 获取用户所有的中心
	 * @return
	 */
	List<Center> findListByUser(User user);
	
	/* =================================================
	 * 华丽分割线
	 * =================================================*/
	List<Center> apiFindListByArea(Area area);
	
	List<Center> apiFindListByStudent(Student student);	
	
	Center apiGetById(@Param("id")String id);
	
	List<Center> apiGetCenterList();
}